
<div style="float: left;">

<div class="ui-corner-top side_menu" style="width: 700px;">Master List By Grade Level</div>
<div style="border:1px  solid #286bcc;">
	<div>&nbsp;</div>
	<div>
	<?if(isset($system_message))echo $system_message;?>
	<table>
			<thead class="tabular-head">
			<tr>
				<th>Grade Level</th>
			</tr>
			</thead>
			<tbody class="tabular">
			<?php
			foreach($grade_level_data as $gld):
			?>
				<tr>
					<td><?php echo $gld->level_desc; ?></td>
					<td>
					<table>
						<?php
						foreach($grade_level_sections_data as $glsd):
						$number = 0;
						if($glsd->level_id === $gld->level_id){
						?>
						<tr>
							<td>
							<?php
							echo $glsd->section_name;
							?>
							</td>
							<?php
							foreach($count_enrollees as $ec):
							if($ec->e_section_id === $glsd->section_id && $ec->e_grade_level === $glsd->level_id){
							$number++;
							?>
							<td>
							<a href="<?php echo site_url('finance/view_enrollees/'.$glsd->section_id.'/'.$glsd->level_id)?>">(<?php echo $number; ?>)</a>
							</td>
							<?php
							}
							endforeach;
							?>
						</tr>
						<?php
						}
						endforeach;
						?>
					</table>
					</td>
				</tr>
			<?php 
			endforeach; 
			?>
			</tbody>
	</table>
	</div>
	<div class="clearfloat"></div>
</div>

<div>&nbsp;</div>
</div>